<?php

class Tag_Friendlist {
	static $XSL;
}

Tag_Friendlist::$XSL = <<<EOD
<xsl:template match="i:friend-list-box">
<div id="{@id}_frame" style="position: relative; z-index:100">
<div class="write-input">
	<input type="text" class="input" id="{@id}" autocomplete="off" tagindex="1" name="{@name}" value="{@default}"  />
	<input type="button" class="btn" id="{@id}_dropbtn"/>
</div>
<div class="popup-form"  id="{@id}_drop" style="display: none; position:absolute; z-index:100">
<div class="popup-mid-main">
			  <div class="popup-mid-main-top">
			      <select class="all-friends" id="{@id}_group"><option value="0">全部好友</option></select>
				  <div class="popup-mid-main-top-title">
				    <xsl:value-of select="@title"/>
				  </div>
			  </div>
			<div class="popup-mid-main-mid" id="{@id}_loading" style="display:none">
				<div class="popup-mid-main-mid-content" >
				<div class="popup-mid-main-mid-content_loading">
					<span class="loading_icon"></span>数据载入中，请稍候……
				</div>
				</div>	  
			 </div>
			
	<div id="{@id}_content">		  
			  <div class="popup-mid-main-mid">
				  <div class="popup-mid-main-mid-content">
					<ul class="all-friends-list" id="{@id}_fill">
						
					</ul>
				  </div>
			  </div>
			  
			  <div class="popup-mid-main-bottom">
			     <button class="cbtn1" id="{@id}_ok" type="button">确定</button><button class="cbtn" id="{@id}_reset" type="button">取消</button>
			  </div>
	</div>
		</div>
</div>

</div>
<script>
new FriendList("<xsl:value-of select="@id"/>", <xsl:value-of select="@more-choice"/><xsl:if test="@max">, <xsl:value-of select="@max"/></xsl:if>);
</script>
</xsl:template>
EOD;
